.class public Lcom/qq/e/ads/WebReporter;
.super Ljava/lang/Object;


# instance fields
.field private a:Lcom/qq/e/comm/pi/WRI;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    invoke-static {p2}, Lcom/qq/e/comm/util/StringUtil;->isEmpty(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string p1, "init web reporter fail with error params"

    :goto_0
    invoke-static {p1}, Lcom/qq/e/comm/util/GDTLogger;->e(Ljava/lang/String;)V

    return-void

    :cond_0
    :try_start_0
    invoke-static {}, Lcom/qq/e/comm/managers/GDTADManager;->getInstance()Lcom/qq/e/comm/managers/GDTADManager;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Lcom/qq/e/comm/managers/GDTADManager;->initWith(Landroid/content/Context;Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_1

    const-string p1, "SDK is not ready!"

    invoke-static {p1}, Lcom/qq/e/comm/util/GDTLogger;->e(Ljava/lang/String;)V

    goto :goto_1

    :cond_1
    invoke-static {}, Lcom/qq/e/comm/managers/GDTADManager;->getInstance()Lcom/qq/e/comm/managers/GDTADManager;

    move-result-object p1

    invoke-virtual {p1}, Lcom/qq/e/comm/managers/GDTADManager;->getPM()Lcom/qq/e/comm/managers/plugin/PM;

    move-result-object p1

    invoke-virtual {p1}, Lcom/qq/e/comm/managers/plugin/PM;->getPOFactory()Lcom/qq/e/comm/pi/POFactory;

    move-result-object p1

    invoke-interface {p1, p3, p4, p5}, Lcom/qq/e/comm/pi/POFactory;->getWebReporterDelegate(Ljava/lang/String;J)Lcom/qq/e/comm/pi/WRI;

    move-result-object p1

    iput-object p1, p0, Lcom/qq/e/ads/WebReporter;->a:Lcom/qq/e/comm/pi/WRI;
    :try_end_0
    .catch Lcom/qq/e/comm/managers/plugin/c; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    return-void

    :catchall_0
    move-exception p1

    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    :goto_1
    return-void

    :catch_0
    const-string p1, "Web reporter created by factory return null"

    goto :goto_0
.end method


# virtual methods
.method public report(Ljava/lang/String;I)V
    .locals 1

    iget-object v0, p0, Lcom/qq/e/ads/WebReporter;->a:Lcom/qq/e/comm/pi/WRI;

    if-eqz v0, :cond_0

    invoke-interface {v0, p1, p2}, Lcom/qq/e/comm/pi/WRI;->report(Ljava/lang/String;I)V

    :cond_0
    return-void
.end method
